import {fetchSensorValue} from "./api/data.js"
import {getCaptcha} from "./api/bilibili"
import {createElement} from "./utils/element"

let app = document.getElementById("app");

app.innerText="渲染一个东西"

fetchSensorValue().then(({data})=>{
     let newChild = createElement("img",data.image);

     app.appendChild(newChild)
 })



getCaptcha("罗俊华").then(({data})=>{

    let newChild = createElement("img",data.image);

    app.appendChild(newChild)

})




